/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.seari.service;

import com.seari.bean.UserRole;
import com.seari.mapper.UserRoleMapper;
import com.seari.pojo.QueryUserRole;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author Rainbow
 */
@Service("userRoleService")
public class UserRoleServiceImpl implements  UserRoleService
{
    @Autowired
    private UserRoleMapper userRoleMapper;
    @Override
    public List<UserRole> getUserRoleByParams(QueryUserRole qur)
    {
        return userRoleMapper.getUserRoleByParams(qur);
    }

    @Override
    public int checkUserRoleExist(QueryUserRole qur)
    {
        return userRoleMapper.checkUserRoleExist(qur);
    }

    @Override
    public int addUserRole(UserRole userRole)
    {
        return userRoleMapper.addUserRole(userRole);
    }

    @Override
    public int updateUserRole(UserRole userRole)
    {
        return userRoleMapper.updateUserRole(userRole);
    }

    @Override
    public int deleteUserRole(int urid)
    {
        return userRoleMapper.deleteUserRole(urid);
    }
    
}
